/* 商品详情页样式 */
body .container {
    max-width: 1200px;
    height: auto;
    margin: 0 auto;
    padding: 15px;
}

.crumbs {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.crumbs a {
    color: #333;
    text-decoration: none;
}

.crumbs a:hover {
    color: #ff6700;
}

/* 商品展示区域 */
.product-detail {
    display: flex;
    margin-bottom: 30px;
}

.product-gallery {
    width: 40%;
    margin-right: 30px;
}

.main-image {
    width: 100%;
    height: 400px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 1px solid #ddd;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail.active {
    border-color: #ff6700;
}

.thumbnail img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 商品信息区域 */
.product-info {
    flex: 1;
}

.book-title {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: bold;
}

.book-desc {
    color: #666;
    margin-bottom: 20px;
}

.price-box {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
}

.price-label {
    font-size: 14px;
    color: #666;
}

.price {
    font-size: 24px;
    color: #ff6700;
    font-weight: bold;
    margin-right: 10px;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.book-meta {
    margin-bottom: 20px;
}

.meta-item {
    margin-bottom: 10px;
    display: flex;
}

.meta-label {
    width: 80px;
    color: #666;
}

/* 品相说明 */
.quality-box {
    margin-bottom: 20px;
    border: 1px solid #eee;
    padding: 15px;
}

.quality-title {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: bold;
}

.quality-list {
    list-style: none;
    padding: 0;
}

.quality-list li {
    margin-bottom: 8px;
    color: #666;
}

/* 操作区域 */
.action-box {
    margin-top: 20px;
}

.quantity-box {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.quantity-label {
    margin-right: 10px;
}

.quantity-control {
    display: flex;
    border: 1px solid #ddd;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
}

.quantity-input {
    width: 50px;
    height: 30px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.stock {
    margin-left: 15px;
    color: #666;
}

.button-group {
    display: flex;
    gap: 15px;
}

.action-btn {
    padding: 10px 30px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.add-cart {
    background-color: #ff9700;
    color: white;
}

.buy-now {
    background-color: #ff6700;
    color: white;
}

/* 详情内容区域 */
.detail-content {
    margin-top: 30px;
}

.detail-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
}

.tab.active {
    color: #ff6700;
    border-bottom: 2px solid #ff6700;
}

.detail-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: bold;
}

.book-params {
    width: 100%;
    border-collapse: collapse;
}

.book-params td {
    padding: 10px;
    border: 1px solid #eee;
}

.book-params td:first-child {
    width: 120px;
    background-color: #f9f9f9;
}

.preview-image {
    max-width: 100%;
    margin-bottom: 20px;
}

/* 登录提示弹窗 */
.mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loginContent {
    width: 300px;
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
}

.loginTitle {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background-color: #f5f5f5;
}

.close {
    cursor: pointer;
    font-size: 20px;
}

.loginBtn {
    padding: 20px;
    text-align: center;
}

.loginBtn button {
    padding: 8px 30px;
    background-color: #ff6700;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}
